Skip to content

Conversation

@davidhewitt
Copy link
Member

As we approach the 0.28 release, time to remove all functionality deprecated two versions ago:

  • The PyObject alias for Py<PyAny>
  • GILOnceCell and GILProtected types
  • Python::with_gil and similar functions which were renamed to attach, detach etc.

Some remnants of GILOnceCell remain until we have merged #5341

@davidhewitt davidhewitt mentioned this pull request Jan 18, 2026
Copy link
Contributor

@Icxolu Icxolu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also PyString::from_object and timezone_utc which are deprecated since 0.25, maybe we remove them here as well?

@davidhewitt
Copy link
Member Author

Good catch, I'd missed that we didn't remove those in 0.27 🙈

@davidhewitt davidhewitt enabled auto-merge January 18, 2026 13:57
@davidhewitt davidhewitt added this pull request to the merge queue Jan 18, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Jan 18, 2026
@davidhewitt davidhewitt enabled auto-merge January 18, 2026 14:39
@davidhewitt davidhewitt added this pull request to the merge queue Jan 18, 2026
Merged via the queue into PyO3:main with commit c969dd0 Jan 18, 2026
43 of 44 checks passed
@davidhewitt davidhewitt deleted the 0.26-removals branch January 18, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants